<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<head>
<style>
table,th,td{
    border: 1px solid black;
}
</style>
</head>
<body>
    <h1>为表格添加边框：</h1>

<table>
  <tr>
    <th>1名</th>
    <th>2名</th>
  </tr>
  <tr>
    <td>ALLEN</td>
    <td>wang</td>
  </tr>
  <tr>
    <td>bill</td>
    <td>wang</td>
</body>
</html>